package org.example.SystemDemo.comment.enity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 字节大小信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FormatByteInfo {

    /**
     * 数值
     */
    private double number;
    /**
     * 单位
     */
    private String unit;

    @Override
    public String toString() {
        return number + " " + unit;
    }
}
